﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
//命名空间不需要包含系统内置文件夹名，如IceDog.DNF.Program.Website.App_Code是错的
namespace IceDog.DNF.Program.Website
{
    public class GreetHelper
    {
        public static string GetString(string name)
        {
            string str;
            try
            {
                str = Resources.Greet_zh_cn.ResourceManager.GetString(name, CultureInfo.CurrentCulture);
            }
            catch
            {
                str = "Could not find global resource.";
            }
            return str;
        }
        /// <summary>
        /// 尚不可用
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static string GetGlobalResourceObject(string name)
        {
            return (string)HttpContext.GetGlobalResourceObject("Resources", name);
        }
    }
}